package cn.bugstack.springframework.beans.factory.support;

import java.lang.reflect.Constructor;

import cn.bugstack.springframework.BeanException;
import cn.bugstack.springframework.beans.factory.config.BeanDefinition;

/**
 * description: 实例化策略接口
 * taskId：
 * <pre>
 * change history:
 * date             defect#             person                comments
 * ---------------------------------------------------------------------
 * 2024/12/31       ********         zhaochaoyue        create file
 * </pre>
 *
 * @author: zhaochaoyue
 * @date: 2024/12/31 16:31
 * @copyright: 2024
 */
public interface InstantiationStrategy {
    
    Object instantiate(BeanDefinition beanDefinition,String beanName, Constructor ctor,Object[] args) throws BeanException;
}
